package linter.linterjava.mapper;

import linter.linterjava.POJO.DO.ReviewLikes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 北煜
* @description 针对表【review_likes(评论点赞表)】的数据库操作Mapper
* @createDate 2024-07-07 12:16:06
* @Entity linter.linterjava.POJO.DO.ReviewLikes
*/
public interface ReviewLikesMapper extends BaseMapper<ReviewLikes> {

    /**
     * @param uuid 用户id
     * @param reviewId 评论的id
     * @return 返回查询到的数据条数
     */
    int selByIdAndReviewId(@Param("uuid") Long uuid, @Param("reviewId") Long reviewId);

    /**
     * @param reviewId 评论id
     * @return 返回查询到的数据条数
     */
    int selById(@Param("reviewId") Long reviewId);

}




